//
//  AuthenicateInfoHeadView.m
//  QRMaster
//
//  Created by myApple on 16/4/14.
//  Copyright © 2016年 myApple. All rights reserved.
//

#import "AuthenicateInfoHeadView.h"
#import "AutoLayoutFrame.h"

@interface AuthenicateInfoHeadView()
{
    UILabel * authenicateLabel;
}

@end

@implementation AuthenicateInfoHeadView

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        [self prepareView];
    }
    return self;
}

-(void)prepareView
{
    float x = 16;
    float y = [AutoLayoutFrame autoSizeY:14.0];
    float width = 180;
    float height = 20;
    
    authenicateLabel = [[UILabel alloc]initWithFrame:CGRectMake(x, y, width, height)];
    authenicateLabel.font = [UIFont systemFontOfSize:14.0];
    authenicateLabel.textColor = UIColorFromRGBAndA(0x333333, 0.6);
    [self addSubview:authenicateLabel];
}

-(void)setTitleName:(NSString *)titleName
{
    _titleName = titleName;
    authenicateLabel.text = titleName;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
